const req = import.meta.globEager('../../icons/svg/*.svg')
const requireAll = requireContext => Object.keys(requireContext)

const re = /\.\/(.*\/)*(.*)\.svg/

const svgIcons = requireAll(req).map(i => {
  return i.match(re)[2]
})

export default svgIcons
